package com.ruoyi.mes.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 完工入库对象 finish_inhou
 *
 * @author LongAndHao
 * @date 2023-05-17
 */
public class FinishInhou extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 车间任务ID */
    @Excel(name = "车间任务ID")
    private Long wkspTaskId;

    /** 车间任务编码 */
    @Excel(name = "车间任务编码")
    private String wkspCode;

    /** 产品id */
    @Excel(name = "产品id")
    private Long proId;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private Long inhouQuantity;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private Long qualifiedNum;

    /** 入库人 */
    @Excel(name = "入库人")
    private String inhouName;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inhouTime;

    /** 入库状态 0 - 待入库 1 - 已入库 */
    @Excel(name = "入库状态 0 - 待入库 1 - 已入库")
    private Long status;


    /** 产品编码 */
    @TableField(exist = false)
    @Excel(name = "产品编码")
    private String proCode;

    /** 产品名称 */
    @TableField(exist = false)
    @Excel(name = "产品名称")
    private String proName;

    public Long getQualifiedNum() {
        return qualifiedNum;
    }

    public void setQualifiedNum(Long qualifiedNum) {
        this.qualifiedNum = qualifiedNum;
    }

    public String getProCode() {
        return proCode;
    }

    public void setProCode(String proCode) {
        this.proCode = proCode;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setWkspTaskId(Long wkspTaskId)
    {
        this.wkspTaskId = wkspTaskId;
    }

    public Long getWkspTaskId()
    {
        return wkspTaskId;
    }
    public void setWkspCode(String wkspCode)
    {
        this.wkspCode = wkspCode;
    }

    public String getWkspCode()
    {
        return wkspCode;
    }
    public void setProId(Long proId)
    {
        this.proId = proId;
    }

    public Long getProId()
    {
        return proId;
    }
    public void setInhouQuantity(Long inhouQuantity)
    {
        this.inhouQuantity = inhouQuantity;
    }

    public Long getInhouQuantity()
    {
        return inhouQuantity;
    }
    public void setInhouName(String inhouName)
    {
        this.inhouName = inhouName;
    }

    public String getInhouName()
    {
        return inhouName;
    }
    public void setInhouTime(Date inhouTime)
    {
        this.inhouTime = inhouTime;
    }

    public Date getInhouTime()
    {
        return inhouTime;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("wkspTaskId", getWkspTaskId())
            .append("wkspCode", getWkspCode())
            .append("proId", getProId())
            .append("inhouQuantity", getInhouQuantity())
            .append("inhouName", getInhouName())
            .append("inhouTime", getInhouTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
